package com.zgscwjm.taobaphelper.ui;

import android.os.Message;

import com.zgscwjm.taobaphelper.UpdateActivity;
import com.zgscwjm.taobaphelper.auto.updateCookie;
import com.zgscwjm.taobaphelper.b.a;

/**
 * Created by fukunaka on 2017/3/9.对应原来的ak.java
 */

public class thread_install_sogou implements Runnable {
    final  UpdateActivity updateActivity;

   public thread_install_sogou(UpdateActivity updateActivity){
       this.updateActivity=updateActivity;
   }
    @Override
    public void run() {

        a.c("pm uninstall sogou.mobile.explorer");
        String c= a.c("pm install -r /data/local/tmp/sogou.apk");
        Message obtainmessage=updateActivity.handler.obtainMessage();
        obtainmessage.what=5041;
        obtainmessage.obj=c;
        updateActivity.handler.sendMessage(obtainmessage);

    }
}
